@extends('layouts.app')

@section('content')
<div class="col-md-8 col-md-offset-2">
	<div class="panel panel-default">
	  <div class="panel-heading">公告</div>
	  <div class="panel-body">
	    <ul class="list-group">
	    	@foreach($articles as $article)
		    <li class="list-group-item clearfix">
		    	<a href="{{ url('/news/detail',['id'=>$article->id]) }}">
		    	<span class="left newsleft">{{ $article->title }}</span>
		    	<span class="right newsright">{{ $article->updated_at->toDateString() }}</span>
		    	</a>
		    </li>
		    @endforeach
		    <!-- <li class="list-group-item clearfix">
		    	<a href="#">
		    	<span class="left newsleft">标题标题标题标题标题标题</span>
		    	<span class="right newsright">2016-10-15</span>
		    	</a>
		    </li>
		    <li class="list-group-item clearfix">
		    	<a href="#">
		    	<span class="left newsleft">标题标题标题标题标题标题</span>
		    	<span class="right newsright">2016-10-15</span>
		    	</a>
		    </li> -->
		  </ul>
	  </div>
	  {!! $articles->links() !!}
	</div>
</div>
@endsection
